<?php #Обратная навигация
class crumbs extends Load_use
{
	function getBlock()
	{
		$res='';		
		$links=$this->getParam('links',false);
		if($links )
		{
			$end=count($links)-1;
			$ind=0;
			$res.='<div class="crumbs" xmlns:v="http://rdf.data-vocabulary.org/#">';
			$not_a=$this->getParam('not_a',false);
			foreach($links as $link=>$title)
			{
					$res.=($ind!=$end)
						?'<span class="mid'.($ind++==0?' main':'').'" typeof="v:Breadcrumb">'.(!$not_a?'<a href="'.$link.'" rel="v:url" property="v:title">'.$title.'</a>':$title).'</span>'
						:'<span class="current">'.$title.'</span>';
				
			}
			$res.='</div>';
		}
		return $res;
	}
}